
<extend name="Public/base" />
<block name="style">
    <style type="text/css">
    .code{
        width: 135px;
        height:40px;
        border:none;
        background: #4BBD00;
        color: #fff;

    }
    .real_status{
        width: 135px;
        height:40px;
        border:none;
        background: #4BBD00;
        color: #fff;

    }

    p{
        height:50px;
        line-height: 50px;
        font-size: 18px;
        margin-top: 20px;
    }
.form-item{border-bottom: 1px dashed #ccc;padding-top: 5px;padding-bottom: 5px;}
.item-label{float: left;width: 130px;text-align: right;padding-right: 20px;color: #999;}
.controls{float: left;}

    </style>
</block>
<block name="body">
    <div class="main-title">
        <h2>申诉详情</h2>
    </div>
    



   <form id="form" method="post" class="form-horizontal doc-modal-form">
                       <!-- 学籍信息  -->
                <div id="tab1" class="tab-pane in tab1">

                    <div class="form-item cf">
                        <label class="item-label">申诉店铺：</label>
                        <div class="controls">
                            <input type="text" readonly="readonly" value="{$_list.shop_name}" style="border:none;background:#F6F6F6">
                            <!-- <span>{$_list.realname}</span> -->
                        </div>
                    </div>

                    <div class="form-item cf">
                        <label class="item-label">申诉订单：</label>
                        <div class="controls">
                            <span >{$_list.trade_no}</span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">解决办法：</label>
                        <div class="controls">
                            <span>{$_list.method}</span>
                        </div>
                    </div>


                    <div class="form-item cf">
                        <label class="item-label">交易详情图：</label>
                        <div class="controls" style="height:100px;">
                            <empty name="_list['pic']">
                                 <span>未上传</span>
                                <else/>
                                <a href="Uploads/{$_list.pic}" target="_blank"><img src="Uploads/{$_list.pic}" style="width: 200px;height: 100px;"></a>
                            </empty>

                        </div>
                    </div>

                    <div class="form-item cf">
                        <label class="item-label">被投诉原因：</label>
                        <div class="controls">
        
                            <span id="" style="text-indent: 2em;font-size:14px;line-height:30px;">
                                <php>
                                    $one=D('Tousu')->where(['rade_no'=>$_list['trade_no']])->find();
                                    echo $one['cause'];
                                </php>
                            </span>
                        </div>
                    </div>





                    
                    <div class="form-item cf">
                        <label class="item-label">申诉状态 ： </label>
                        <div class="controls">
                            <span> 
                                <php>
                                    if($_list['status']==0){
                                        echo '<font style="color:red">待处理</font>';
                                    }else if($_list['status']==1){
                                        echo '<font style="color:green">已处理</font>';
                                    }else if($_list['status']==2){
                                        echo '<font style="color:orange">处理中</font>';
                                    }else if($_list['status']==3){
                                        echo '<font style="color:orange">不受理</font>';
                                    }
                                </php>
                            </span>
                        </div>
                    </div>

                  


                </div>
                <i style="display:block;border-bottom:1px dashed #999;width:100%"> </i>
                <if condition="$_list[status] eq 3">
                    <elseif condition="$_list[status] eq 1"/>
                    <else/>
                        <div class="form-item">
                            <input name="id" value="{$_list.id}" type="hidden" id="id">
                            <input name="uid" value="{$_list.uid}" type="hidden" id="uid">
                            
                            <font class="btn btn-return" >确认处理完毕</font>
                        </div>
                </if>
                
            </form>
</block>
<block name="script">


    <script type="text/javascript">

        Think.setValue("extend", {$info.extend|default=0});
            //导航高亮
            highlight_subnav('{:U('shensu')}');


        $('.btn-return').click(function(){
            var id=$('#id').val();
            var uid=$('#uid').val();
            $.ajax({
                type:'post',
                url:"{:U('ss_view')}",
                data:{'id':id,'status':1,'uid':uid},
                success:function(m){
                    if(m==1){
                        alert('操作成功！');
                        location.href="{:U('shensu')}";
                    }else if(m==0){
                        alert('操作失败！');
                    }else{
                        alert(m)
                    }
                }

            })

        })

    </script>

</block>

